package eop.project;
import eop.project.Location;

import grails.test.*

class LocationTest extends GrailsUnitTestCase {
	protected void setUp() {
		super.setUp()
	}
	
	protected void tearDown() {
		super.tearDown()
	}
	
	void testSomething() {
		mockDomain (Location)
		Location l=new Location(location:'Mariana Is-C Pacific',lattitude:16.708,longitude:145.78,elevation:538)
		l.validate()
		
		if(l.hasErrors()){
			l.errors.each{ println "volcano error : $it" }
		}
		else
			println "no errors"
		l.save()
	}
}
